package com.wyh.yuhcloud.dao;

import com.wyh.yuhcloud.dto.LoginUserDto;
import com.wyh.yuhcloud.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author wyh
 * @version 1.0
 * @date 2022/2/24 17:02
 */
@Mapper
@Repository
public interface UserMapper {

    //注册
    void signUp(User user);
    //登录
    User userLogin(LoginUserDto loginUserDto);
    //请求等级
    Integer queryVersion(String userName);

    //查找登录用户信息
    User userInfo(String userName);

    //请求等级
    Integer queryVersionById(String id);
}
